﻿using System;
using System.Collections.Generic;

using System.Windows.Forms;
using System.Diagnostics;
using MathAssistLibrary;

namespace SuperCalculator
{
    static class Program
    {

        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault( false );
            Application.Run( new frmSuperCalculator() );
            //BigNumber a = new BigNumber( "3.4" );
            //BigNumber b = new BigNumber( "0.6" );
            //BigNumber r = DeciamlPowerCalculator.Power( a, b,1 );
            //Console.WriteLine( r );
            //Expression exp = new Expression( "2sin" );
            //BigNumber a = new BigNumber( "0.1" );
            //BigNumber b = new BigNumber( "3" );
            //Console.WriteLine( BigNumber.Division( a, b, 6 ).ToString() );

            // BigNumber m = new BigNumber( "13" );

            //Console.WriteLine( DeciamlPowerCalculator.Sqrt  ( m ,14 ) );
            // Console.ReadKey();

            //while ( true )
            //{
            //    string str = Console.ReadLine();
            //    string pow = Console.ReadLine();
            //    BigNumber a = new BigNumber( str );
            //    BigNumber b = new BigNumber( pow );

            //    //Console.WriteLine( Math.Sqrt( double.Parse( str ) ) );
            //    //Console.WriteLine( DeciamlPowerCalculator.Sqrt( a, 14 ) );

            //    Console.WriteLine( ( Math.Pow( double.Parse( str ), double.Parse( pow ) ) ).ToString() );
            //    Console.WriteLine( ( DeciamlPowerCalculator.Power( a, b, 20 ) ).ToString() );

            //    //Console.WriteLine( Math.Pow( double.Parse( str ), 0.125 ) );
            //    //Console.WriteLine( DeciamlPowerCalculator.Root( a, 3, 14 ) );
            //}

        }
    }
}
